<?php
namespace app\demo\controller;


use think\Request;
use think\Controller;
use View;

class Common extends Controller
{


    protected $beforeActionList = [
        'first',
    ];


    public function first(){


        View::share('title','qiqi welcome page');
        View::share('homePage',['name'=>'HomeQiQi','link'=>'http://www.baidu.com']);

    }

    public function welcome(){



       return $this->fetch();
    }


}